package org.springblade.modules.admin.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Date 14:34 2023/5/5
 * @Description {
 *   工单逾期
 * }
 * @Author lsay
 **/
@Getter
@AllArgsConstructor
public enum PlanOverdueEnum {

	NORMAL(1, "正常"),
	OVERDUE(2, "逾期");

	final int id;
	final String name;

	public static String getName(Integer id){
		PlanOverdueEnum[] enums = PlanOverdueEnum.values();
		for (PlanOverdueEnum typeEnum : enums) {
			if(typeEnum.getId() == id){
				return typeEnum.getName();
			}
		}
		return null;
	}

}
